Skip to content

feat(burst): reach machines over the caller's tailnet, and detach lanes (0.70.0) - #90

Open
indykish wants to merge 12 commits into
mainfrom
feat/burst-tailnet
Open

indykish wants to merge 12 commits into
mainfrom
feat/burst-tailnet

Conversation

@indykish

@indykish indykish commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

orly burst admitted SSH only from the caller's public IPv4 and ran each lane inside one SSH session. When the caller's network changed mid-run (a Wi-Fi drop that brings a new public IP), the session died, reconnecting was refused, and the lane was marked interrupted and its VM deleted. Seen live: a lane admitted from one address lost its session 17 minutes in after the caller's address changed.

What changes (0.70.0)

  • Tailnet only. The caller must be on a Tailscale tailnet. Each VM joins it at first boot with its own auth key: ephemeral, preauthorized, single use, 10-minute expiry, tagged exactly tag:orly-burst, minted from an OAuth trust credential whose only tag is tag:orly-burst. The key is deleted once the VM has joined, and on every failure. SSH goes to the VM's tailnet address. No security group opens port 22. The AWS group has no inbound rule; TIR's has UDP 41641 only, Tailscale's direct-connection port, because TIR refuses an empty group.
  • Boot. AWS passes the join through EC2 user data. E2E Networks TIR has no user data, so each VM gets its own start script, deleted with the VM.
  • Detached lane. The job runs under setsid/nohup, writing its log and exit code to /run/orly-burst. orly follows the log by byte offset. When the session drops, it reconnects within the existing machine-wait window, never past the job deadline, and resumes where the log left off. The exit-code file decides the result.
  • Teardown. Nodes log out before their VM is deleted. A warm-up wipes Tailscale state and cloud-init before it is imaged, so no snapshot carries a node identity.

Security review (independent, then re-reviewed)

Fixed:

  • A peer must carry tag:orly-burst, and only one may match.
  • burst.secrets refuses TS_OAUTH_*, E2E_* and AWS_*.
  • The snapshot is wiped before imaging.
  • A truncated upload is refused by byte count.
  • A refused TIR start script is reported by HTTP status only.
  • A node that joins late is still logged out, and orphaned start scripts are reaped by age.
  • docs/BURST.md warns that tag:orly-burst must appear in no rule's src, and that a tailnet's default allow-all grant lets burst VMs reach every device.

Open for the owner: resolveSecrets still sends any preset caller environment value a repository's burst.secrets names. That behaviour predates this change.

Evidence

  • make audit: 615 pass, 0 fail (615 tests, 51 files).
  • orly gate verify: repo.config, docs.language and typecheck all green.
  • gitleaks git over these 4 commits and gitleaks dir over the tree: no leaks found. Outgoing commits and messages were also checked against the real credential values and for vault paths: none present.
  • All tests run on fakes (fake TIR, fake SSH, fake Tailscale API); no live cloud or Tailscale calls. The first live burst proves the TIR start-script path and tailscale up --auth-key=file:.

Do not merge until the owner has reviewed it.

Session notes 1

Added the owner's five approved improvements to 0.70.0, applied the reduction review's one-form cuts, and took review records out of the tree. orly gate pr now reuses a run made before the commit, coupled paths fail a one-sided change, orly proof and orly note record fail-before proofs and owner rulings, and orly-spec runs the EGM (Elephant-Goldfish Model) reviewers itself and writes no review file. Open for the owner: the Markdown cleanup plan and the earlier reduction proposals, delivered as a session report rather than a file.

Owner (Indy, Nov 26, 2026): "Yes i agree on 1, 3, 6 - have the skill do egm-review, 7, 8 and push it in the existing PR with 0.70 in orly."

Owner (Indy, Nov 26, 2026): "In orly i recommend you to check the code files in the PR and other to see if we could reduce and make the skill to be more deterministic including the AGENTS.md and others"

Owner (Indy, Nov 26, 2026): "Dont keep adding more documents so i prefer you delete docs/v2/evidence/* in orly and ensure you suggest review and clean up the docs to be deterministic the md files in orly" — context: both review records deleted in 2b0ab14; orly-spec writes no review file.

Owner (Indy, Nov 26, 2026): "1. keep it at 0.70.0" — context: CL-BUDGET; both changes stay in the one 0.70.0 entry, which runs to ten bullets.

  • Spec: docs/v2/done/M18_001_P2_CLI_DOCS_GOV_SKILL_GATE_PROVES_MORE_RERUNS_LESS.md, Status: DONE; its Discovery carries all four rulings through orly note.
  • Reuse keyed to the tree: the binding is the merge base plus every tracked path's mode and working-tree bytes (or tracked_inputs), never the revision. A run with no untracked file records evidence, including under --accept-dirty and the push gate; only a clean tree at the pushed revision accepts it. Records are format 2, so earlier evidence runs fresh.
  • Decision, reuse: hermetic: true now also means the command reads no Git history, because evidence outlives the commit it ran beside; the 0.70.0 Upgrade bullet says to drop a policy whose command does. This reverses M16's "--accept-dirty disables reusable evidence", since content binding makes the flag irrelevant to what evidence proves. verify.integration and verify.memory still always run fresh. Unverified: whether the 40-minute agentsfleet rerun was a reusable lane; if it was verify.integration, this change cannot help it.
  • Decision, coupled paths: one way (when requires then) and checked only at gate pr, like docs.updated, so a version may move alone and a Section in progress may push one side first.
  • Decision, proofs: a missing proof is reported in tests.proven and never fails the gate. Records live beneath one worktree's Git metadata, so a fresh clone or CI has none, and a verdict must not depend on private local history. Declarations are read from added lines in TypeScript, JavaScript, Rust (after a #[test]-style attribute), Go (func Test…) and Python (def test_…); a changed body under an old declaration is not seen.
  • Decision, notes: the owner name is the owner the selected persona pack declares in registry.json (persona.indy → Indy); with no such pack, orly note refuses. The line carries HH:MM, as SPEC-DEFER's form does.
  • Review records out of the tree: orly-spec step 6 applies accepted findings to the spec and records rulings and declined findings in Discovery; reviewer detail stays in the session. The M17 and M18 specs state their facts without pointing at the deleted files, and src/layout.test.ts now fails any tracked file outside history that cites an evidence path (it failed on the old step 6 before the fix). No schema field or criterion counted those files: docs.updated already skips everything under docs/v<N>/. docs/evidence/spec-readiness/ has no reader either and is the first cleanup proposal, not deleted here.
  • Dead ends: the first proof run mutated src/proof.ts while orly proof itself ran from it, so all proofs were re-recorded from an unmutated copy of the engine. That run also found that bun prints no passing lines off a terminal, which made one test vacuous, and that multi-line test.each tables went unread; both are fixed in 9850d20.

Review

  • gstack /review: not run. This session ran as a delegated agent; run it before merge.
  • orly-standards-reviewer (fresh context, Claude Opus 5.5) on the tree at 9850d20: 13 findings. FIXED in 13b9dad/b92f750: P1 forged-record test passed with the signature check deleted (now alters failing_line); P1 spec S4 had no gitleaks evidence (graded from its own run); P1 spec cited a review file not yet committed (now removed by owner ruling, and the spec states the counts itself); P2 TEST-GITENV bare git spawn; P2 HLP supportedLanguages export; P2 DOC-S6 "names each" (names up to three); P2 CL-BULLET two facts in one bullet; P2 DOC-10 EGM unexpanded twice; P2 SPEC-READ home-directory path; P2 SPEC-DIM Dimensions without input and output; P2 TS-TESTFILE three Git-driven suites renamed .integration.test.ts. KEPT on the owner's ruling quoted above: P2 CL-BUDGET, the 0.70.0 entry has ten bullets.
  • Reduction review (two fresh-context read-only reviewers, Claude Opus 5.5): rule text 30 findings, 5 applied, 25 proposed; code 22 findings, 9 applied, 13 proposed; the proposals went to the owner in the session report. AGENTS.md 16,302 → 16,257 bytes; the eight rule files 49,309 → 48,935 bytes; code 22 lines removed, 14 added.

Make

  • bun test src at 3979189 (baseline, local): exit 0, 615 pass, 0 fail.
  • bin/orly gate pr at b92f750 (local, after push): exit 0, cmd.verify.unit 670 pass, 0 fail.
  • bin/orly gate pr at 2b0ab14 (local, after push), first run: exit 1. cmd.verify.unit 669 pass, 1 fail: src/setup.test.ts "md repositories run their own checks without application test lanes" timed out at 5036.56 ms with load average 24.54. That test drives the verify gate, which this branch did not change; alone it passed in about 1.3 s at load 21, and it passed at baseline and in every other full run. Not repaired by a wider timeout (TEST-RACE).
  • bin/orly gate pr at 2b0ab14 (local, rerun): exit 0. Verbatim:
🟢 git.branch [passed]: on feat/burst-tailnet
🟢 git.tree [passed]: clean
🟢 git.pushed [passed]: in sync with origin/feat/burst-tailnet
🟢 git.base [passed]: branch diff is available
🟢 repo.config [passed]: 3 command(s) declared
🟢 docs.language [passed]: changed documentation prose is clean
🟢 docs.updated [passed]: 30 user-surface file(s), 4 docs file(s) updated
🟢 paths.coupled [passed]: no coupled paths declared in .orly/orly.json
🟢 tests.proven [passed]: reported, not enforced: 25 of 58 new test(s) have no fail-before proof; record one with orly proof: src/burst/aws.test.ts › a run imports its key, opens no inbound port, launches lanes at once and removes it all; …
🟢 cmd.verify.typecheck [passed]: 1 invocation(s) exit 0
🟢 cmd.verify.unit [passed]: 1 invocation(s) exit 0
 670 pass
 0 fail
Ran 670 tests across 54 files. [189.31s]
  • tests.proven: the 25 unproven tests are this branch's earlier burst commits; each of this session's 33 new tests carries an orly proof record of its fail-before run (33 of 33 recorded, exit 0).
  • make conform: exit 0. gitleaks detect --redact --no-banner: exit 0, 692 commits scanned, no leaks found; each pre-push gitleaks also found none.
  • Not run here: make install-evals and make audit; CI runs both on this Pull Request.

🤖 Generated with Claude Code

indykish and others added 4 commits November 22, 2026 22:30
…es (0.70.0)

A caller whose public address changed mid-run lost its SSH session, could
never reconnect because the security group admitted the old address only,
and the lane ended interrupted with its machine deleted.

Tailscale is now required. orly refuses to start unless the caller's
`tailscale status` is running and online, then mints one single-use,
ephemeral, preauthorized key tagged exactly tag:orly-burst per machine
through the OAuth credential in TS_OAUTH_CLIENT_ID and
TS_OAUTH_CLIENT_SECRET. The key reaches the machine only in its boot
script, through EC2 user data or a TIR start script, and is deleted once
the machine has joined or failed to. No security group opens port 22, and
the caller-address check is gone.

The job runs detached on the machine, writing its log and exit code under
/run. orly follows the log by byte offset; a lost session is reconnected
for up to 10 minutes since the log last grew, never past the deadline, and
the lane's result is the exit code the machine wrote. Nodes log out before
their machine is deleted, and a warm-up leaves the tailnet before it is
imaged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A node counts only when it carries tag:orly-burst, and two tagged nodes
  of one name are refused, so no device can stand in by claiming a name.
- burst.secrets may not name OP_SERVICE_ACCOUNT_TOKEN or a TS_OAUTH_, E2E_
  or AWS_ variable, since a value already in the caller's environment is
  sent to the machine as it is.
- A warm-up about to be imaged also runs cloud-init clean, stops tailscaled
  and removes its state file, so no snapshot carries its node or user data.
- The launcher is told the job script's size and discards a short upload,
  so a session lost mid-upload never starts a truncated job.
- A refused TIR start script is reported by status alone, since TIR's
  errors may quote the script, and its key, back.
- A node that joined after the run stopped waiting is found and logged out
  at release. Start scripts are named by run, and teardown deletes this
  run's by name and any left by a run that began over 25 hours ago.
- docs/BURST.md warns that tag:orly-burst must be in no rule's src and the
  default allow-all grant must go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
macOS answers EPERM to a signal for a process group whose members have all
exited but are not yet reaped. A session that ended just as its deadline
came threw that from the deadline timer; the reconnect loop's short
sessions made the race likely.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- docs/BURST.md: a killed run's nodes leave once their machines are
  deleted or go offline; the two warnings merge into one, and the key's
  deletion is said once. llms.txt names 0.70.0.
- stopOwnedGroup treats EPERM, a group of unreaped exits, as stopped for
  every caller, and burst's own wrapper goes.
- One run-id helper set in types.ts builds a run id, its tail and when it
  began; node and start-script names use it.
- A warm-up's machine is typed as joined, and is not imaged when it cannot
  be logged out.
- The tailnet address check reuses the shared IPv4 pattern.
- The boot script hands tailscale its key through a 0600 file in /run,
  removed on exit, instead of an argument, and asks `tailscale status`
  whether the node is up.
- An orphaned start script is one older than the longest deadline plus an
  hour, and one a VM still uses is reported as such, not for hand deletion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov-commenter

codecov-commenter commented Nov 22, 2026 •

Copy link
Copy Markdown

indykish and others added 8 commits November 26, 2026 16:26
The owner approved five improvements for the open 0.70.0 Pull Request:
reuse keyed to the tree, coupled paths, an orly-spec that runs the EGM
review itself, recorded fail-before proofs, and orly note. The spec holds
their Dimensions, failure modes and rubric, and its Discovery carries the
owner's words, recorded with orly note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rd proofs and notes (0.70.0)

- Reuse: evidence binds the merge base and every tracked path's mode and
  working-tree bytes (or tracked_inputs), never the revision. A run with no
  untracked file records evidence, including under --accept-dirty and the
  push gate; only a clean tree at the pushed revision accepts it. Records
  move to format 2 with executed_uncommitted, so a revision-keyed record
  runs fresh, and provenance says "with uncommitted changes".
- Coupled paths: coupled [{when, then}] prefix groups in .orly/orly.json,
  validated by zod and the profile schema. gate pr's paths.coupled fails a
  branch that changes a when path and no then path, naming both sides.
- Proofs: orly proof <TEST_FILE> --test <NAME> -- <COMMAND> runs the command
  with the covered code reverted or mutated and keeps a signed record only
  when it fails and an output line reports that test failing. gate pr's
  tests.proven names new TypeScript, JavaScript, Rust, Go and Python test
  declarations without one, and never fails: records are private to one
  worktree, and a verdict must not depend on private history.
- Notes: orly note "<QUOTE>" [--context] [--spec] appends a dated owner line
  to the end of the active spec's Discovery; the name is the owner a
  selected persona pack declares in registry.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e proof and note

egm-review and egm-resolve carry disable-model-invocation, so an agent told
to run them could not, and the review step never happened. Step 6 now
dispatches the egm:* Goldfish reviewers directly, stage 5 to 9 in order with
each stage's reviewers in parallel and no conversation, writes their findings
as table rows to docs/v{P}/evidence/M{N}_{WS}_EGM_REVIEW.md, and resolves them
as egm-resolve does. orly doctor still checks that EGM is installed.

orly-build proves each new test with orly proof and records owner rulings
with orly note; orly-ship records deferral quotes with orly note and copies
the tests.proven line into the Make section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The architecture page, README, llms.txt and the 0.70.0 changelog entry
describe what shipped. TEST-LANE now says reuse matches tracked content,
so a reused command reads no Git history, and tracked_inputs narrows it.
The 0.70.0 entry's Upgrade bullet tells a consumer to drop a reuse policy
whose command reads Git history; evidence from earlier releases runs fresh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st verdict line

Recording proofs for this branch's own tests with orly proof found three
gaps. A `test.each([` table spread over lines closes with `])("name"`,
which the declaration reader missed. The first output line naming a test
could be an assertion's detail rather than the runner's verdict, which
bun, cargo, go and pytest all print after it. And bun prints no passing
lines off a terminal, so the test for a passing line named "failed" now
uses a verbose runner's output, as cargo prints it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner asked for a reduction review of this Pull Request's code, the
skills, AGENTS.md and its sources, SOUL.md and the standards. Findings and
counts are in docs/v2/evidence/M18_REDUCTION_REVIEW.md. Only cuts with one
form and no change of meaning apply here; 36 proposals wait for the owner.

- Rule text: orly-build drops gstack /investigate, which gstack removed, and
  three lines AGENTS.md states verbatim; orly-ship drops the gstack prefix
  note; SOUL.md drops a line core already says. AGENTS.md 16302 -> 16257
  bytes; the eight rule files 49309 -> 48935 bytes.
- Code: BurstRun.fetch had no reader; unused exports, defaults and return
  values go; the fake's second tag check could never fail; proof.ts reads
  its diff through gitOutput; an orphan comment for a removed token goes.
- orly-spec's fallback names the EGM persona file by its frontmatter name,
  since egm-design lives in agents/design_critic.md.
- The three suites that drive orly through Git and subprocesses become
  .integration.test.ts, as the standards review asked, and the M18 spec
  moves to done/ (its closing edits follow).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The forged-record test alters failing_line, so only the signature can
  refuse it; deleting the signature check now fails it. Its base revision
  comes from the scrubbed-environment Git helper (TEST-GITENV).
- The architecture page says tests.proven names up to three tests and
  counts the rest, and expands EGM at its first use.
- The 0.70.0 entry states one fact per bullet and expands EGM.
- The spec moves to done/ with every Dimension DONE, a concrete input and
  output per Dimension, the EGM source as an https reference, the rubric
  graded from its own commands, and the three model reviews' counts in
  Discovery. CL-BUDGET stays open for the owner: two approved changes
  share one version, so the entry runs past five bullets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… file

The owner ruled review records out of the repository. Both files in the
v2 evidence folder go, and the M17 and M18 specs state their facts without
pointing at them. orly-spec step 6 now writes no review file: accepted
findings change the spec, and Discovery records the owner's rulings, through
orly note, and each declined finding with its reason. The reviewer detail
stays in the session. layout.test.ts fails any tracked file outside history
that cites an evidence path. No schema field or gate counted those files:
docs.updated already skips everything under docs/v<N>/.

The owner kept both changes in the one 0.70.0 entry; his ruling and the
evidence ruling are recorded in the M18 Discovery with orly note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants